package com.yxw.live_vod_boot.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 人员信息修改
 * @author liuxin
 * @date 2023.0913
 */
@Data
@ToString(callSuper=true)
@ApiModel(value="UpdateUserDTO", description="人员信息修改")
public class UpdateUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "人员ID", required = true)
    @NotNull(message = "人员ID不能为空")
    private Long userId;

    @ApiModelProperty(value="性别 0：女 1：男")
    private Integer sex;

    @ApiModelProperty(value="出生年月 yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @ApiModelProperty(value="人员昵称")
    private String nickName;
}
